<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTradingNoticesTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('trading_notices', function (Blueprint $table) {
            $table->increments('id');
            $table->enum('lang', ['zh-CN', 'zh-TC', 'en-US'])->default('zh-CN')->comment('语言');
            $table->string('title')->nullable()->default(null)->comment('公告标题');
            $table->text('content')->comment('内容');
            $table->unsignedTinyInteger('status')->default(1)->comment('状态 0不显示　1正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('trading_notices');
    }
}
